#include<stdio.h>

int addToTop(int top)
{
    int ret=0;
    int i=1;
    for(;i<=top;i++)
    {
        ret+=i;
    }
    return ret;
}

int main()
{
    printf("debug begin\n");

    int top=100;
    int sum=addToTop(top);

    printf("sum: %d",sum);
    printf("debug end\n");
    return 0;
}
